package com.yuanrui.auth.domain.service;

import com.yuanrui.auth.domain.entity.AuthPermissionBO;
import com.yuanrui.auth.domain.entity.AuthRoleBO;
import com.yuanrui.auth.domain.entity.AuthRolePermissionBO;

import java.util.List;

/**
 * 角色领域服务
 */
public interface AuthPermissionDomainService {
    Boolean addPermission(AuthPermissionBO authPermissionBO);

    Boolean updatePermission(AuthPermissionBO authPermissionBO);

    Boolean deletePermission(AuthPermissionBO authPermissionBO);

    List<String> getPermission(String userName);

    Boolean updateUserPermission(String userName, String roleId);
}
